﻿using System;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ControlLayer;

namespace YJKAreaStatistic.Forms
{
	internal class AreaStatisticFormModellessManger : BaseLoopMangerNoneSwitch
	{
		public AreaStatisticFormModellessManger(AreaStatisticResultForm inputForm) : base(inputForm.UiDoc, inputForm, inputForm.RevitHandle, null)
		{
		}

		protected override void DoBeforeContinue()
		{
			if (this.m_useForm is AreaStatisticResultForm)
			{
				(this.m_useForm as AreaStatisticResultForm).DoBeforeContinue();
			}
		}

		protected override void DoBeforeClose()
		{
			if (this.m_useForm is AreaStatisticResultForm)
			{
				(this.m_useForm as AreaStatisticResultForm).DoBeforeColse();
			}
		}
	}
}
